home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Aminet 5
/
Aminet 5 - March 1995.iso
/
Aminet
/
util
/
cli
/
CLI_Tools.lha
/
Tackon.doc
< prev
Wrap
Text File
|
1995-02-03
|
912b
|
53 lines
NAME
Tackon
SYNOPSIS
Tackon - join path, filename and suffix - Requires v37
FUNCTION
Tackon gets a filename and perhaps a pathname and a
suffix and creates a new filename out of them.
To add correctly filename to pathname we use AmigaDOS.
If the suffix starts with a "." or "_", it is directly
appended to the full filename;
if suffix starts with an alphanumeric char,
a "." is prepended.
The resulting string is sent to STDOUT
INPUTS
PATH,NAME/A,SUFFIX
RESULT
a filename created with the inputs.
NOTES
CLI - only
should compile with DICE or SAS-C
BUGS
* there is no check, if suffix is itself a path
* the resulting filename must not be bigger than 999 chars
SEE ALSO
dos.library/AddPart
EXAMPLES
>Tackon x: a:b _c
a:b_c
>Tackon x:a b c
x:a/b.c
AUTHOR
Bernd Noll, Brunnenstrasse 55, D-67661 Kaiserslautern
noll@student.uni-kl.de